button: Fix ::clicked emission on touchscreens sending pointer events
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 25 Sep 2014 13:24:46 +0000 (15:24 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 25 Sep 2014 19:25:52 +0000 (21:25 +0200)
commitd17fd81d9b631acf76273b9dca2700250cbbe096
treee7d920a57a91c7b06efaf76af06bf9fbe6b8009b
parentfcec9b98127cf7dcb63be475490f095db1bc6faa
button: Fix ::clicked emission on touchscreens sending pointer events

When GtkGestureMultiPress::released happens, in_button should be unset
after emitting GtkButton::released, whose default implementation uses it.
Moreover, in_button should only be unset there for real touch events, not
guaranteed to trigger crossing events, as opposed to every pointer/touch
events from touchscreens.

https://bugzilla.gnome.org/show_bug.cgi?id=737297
gtk/gtkbutton.c